<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    body {
      perspective: 500px;
    }

    .common {
      width: 100px;
      height: 100px;
      text-align: center;
      line-height: 100px;
      background: #f2f2f2;
      border: 1px solid #ccc;
      position: absolute;
      top: 0;
      left: 0;

    }

    .demo {
      z-index: 1;
      opacity: .5;
      background: pink;
    }

    .demo-3d {
      /* transform: translate3d(0, 0, -100px); */
      /* transform: scale3d(1, 1, 0); */
      /* transform: rotate3d(0, 0, 1, 45deg); */
      transform: translate3d(100px, 100px, -100px) rotateZ(45deg);
    }
  </style>
</head>

<body>
  <div class="common demo">原先位置</div>
  <div class="common demo-3d">3d变换后</div>

</body>

</html>